home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / stevi69s.zip / ENV.H < prev    next >
Text File  |  1990-04-24  |  3KB  |  104 lines

  1. /*
  2.  * The defines in this file establish the environment we're compiling
  3.  * in. Set these appropriately before compiling the editor.
  4.  */
  5.  
  6. /*
  7.  * One (and only 1) of the following defines should be uncommented.
  8.  * Most of the code is pretty machine-independent. Machine dependent
  9.  * code goes in a file like tos.c or unix.c. The only other place
  10.  * where machine dependent code goes is term.h for escape sequences.
  11.  */
  12.  
  13. /* #define    ATARI            /* For the Atari ST */
  14. /* #define    UNIX            /* System V or BSD */
  15. /* #define    OS2            /* Microsoft OS/2 1.1 */
  16. #define    DOS            /* MSDOS 3.3 (on AT) */
  17. /*
  18.  * If DOS is defined, then a number of other defines are possible:
  19.  * v1.1 Too bad author didn't think to use __TURBOC__
  20.  * (which Turbo C itself defines)
  21.  */
  22. #ifdef    DOS
  23. /* v1.1 We're gonna let Turbo C define itself! */
  24. /* #define    TURBOC    */    /* Use Borland Turbo C.  Otherwise, the code
  25.              * uses Microsoft C.
  26.              */
  27. #define    BIOS    /* Display uses the BIOS routines, rather than
  28.              * depending on an ANSI driver.  More
  29.              * self-contained, and supports colors and
  30.              * the following param (only legal if BIOS defined).
  31.              */
  32. #endif
  33.  
  34. /*
  35.  * If UNIX is defined above, then BSD may be defined.
  36.  */
  37. #ifdef    UNIX
  38. /* #define    BSD            /* Berkeley UNIX */
  39. #endif
  40.  
  41. /*
  42.  * If ATARI is defined, MINIX may be defined. Otherwise, the editor
  43.  * is set up to compile using the Sozobon C compiler under TOS.
  44.  */
  45. #ifdef    ATARI
  46. #define    MINIX            /* Minix for the Atari ST */
  47. #endif
  48.  
  49. /*
  50.  * The yank buffer is still static, but its size can be specified
  51.  * here to override the default of 4K.
  52.  */
  53. /* #define    YBSIZE    8192        /* yank buffer size */
  54.  
  55. /*
  56.  * STRCSPN should be defined if the target system doesn't have the
  57.  * routine strcspn() available. See regexp.c for details.
  58.  */
  59.  
  60. #ifdef    ATARI
  61.  
  62. #ifdef    MINIX
  63. #define    STRCSPN
  64. #endif
  65.  
  66. #endif
  67.  
  68. /*
  69.  * The following defines control the inclusion of "optional" features. As
  70.  * the code size of the editor grows, it will probably be useful to be able
  71.  * to tailor the editor to get the features you most want in environments
  72.  * with code size limits.
  73.  *
  74.  * TILDEOP
  75.  *    Normally the '~' command works on a single character. This define
  76.  *    turns on code that allows it to work like an operator. This is
  77.  *    then enabled at runtime with the "tildeop" parameter.
  78.  *
  79.  * HELP
  80.  *    If defined, a series of help screens may be views with the ":help"
  81.  *    command. This eats a fair amount of data space.
  82.  *
  83.  * TERMCAP
  84.  *    If defined, STEVIE uses TERMCAP to determine the escape sequences
  85.  *    to control the screen; if so, TERMCAP support had better be there.
  86.  *    If not defined, you generally get hard-coded escape sequences for
  87.  *    some "reasonable" terminal. In Minix, this means the console. For
  88.  *    UNIX, this means an ANSI standard terminal. For MSDOS, this means
  89.  *    a good ANSI driver (like NANSI.SYS, not ANSI.SYS).
  90.  *    See the file "term.h" for details about specific environments.
  91.  *
  92.  * TAGSTACK
  93.  *    If defined, this includes code that stacks calls to ':ta'.  The
  94.  *    additional command ':untag' pops the stack back to the point at
  95.  *    which the call to ':ta' was made.  In this mode, if the tag stack
  96.  *    is not empty, Ctrl-^ will be interpreted as ':untag' rather than
  97.  *    ':e #'.
  98.  *
  99.  */
  100. #define    TILDEOP        /* enable tilde to be an operator */
  101. #define    HELP        /* enable help command */
  102. /* #define    TERMCAP        /* enable termcap support */
  103. #define    TAGSTACK    /* enable stacking calls to tags */
  104.